package com.web.news.service;

import java.util.List;

import com.web.news.pojo.Comments;
import com.web.news.pojo.News;
import com.web.news.pojo.NewsDo;
import com.web.news.pojo.Topic;

public interface NewsService {

	public List<News> findAllNews();
	
	public NewsDo findNewDetailById(int nid);
	
	public List<Comments> findCommentsByNews(int nid);
	
	public void  addComments(Comments comments);
	
	public void addNews(News news);
	
	public void saveNews(News news);
	
	public void deleteComments(Integer cnid);
	
	public void deleteNews(Integer nid);
	
	public List<Topic> findAllTopic();
	 
}
